﻿using System;

namespace KPIS.GERP.GHRMS.MODEL
{
	[TableName("hrm_ps_emp_health_check")]
	public class HisHealthCheckInfo : TableInfo
	{
		public enum RoundTypeOption { Yearly, Roundly }

		[Field("health_check_seq", typeof(int), true)]
		public int? HealthCheckSequence { get; set; }

		[Field("emp_seq", typeof(int))]
		public int EmpSeq { get; set; }

		[Field("round_type", typeof(int))]
		public string RoundType { get; set; }

		[Field("round_number", typeof(int))]
        public int? RoundNumber { get; set; }

        [Field("round_date", typeof(DateTime))]
        public DateTime RoundDate { get; set; }
         
        public string RoundDateString { get { return RoundDate.ToString("d/MM/yyyy"); } }

		[Field("round_year", typeof(int))]
		public int? RoundYear { get; set; }

		[Field("body_weight", typeof(int))]
		public decimal? BodyWeight { get; set; }

		[Field("body_height", typeof(int))]
		public decimal? BodyHeight { get; set; }

		[Field("health_Glocox", typeof(int))]
		public decimal? HealthGlocox { get; set; }

		[Field("health_Cric_Acid", typeof(int))]
		public decimal? HealthCricAcid { get; set; }

		[Field("health_Alk", typeof(int))]
		public decimal? HealthAlk { get; set; }

		[Field("health_AST_or_S6OT", typeof(int))]
		public decimal? HealthAstOrS6Ot { get; set; }

		[Field("health_ALT_or_S6PT", typeof(int))]
		public decimal? HealthAltOrS6Pt { get; set; }

		[Field("health_Cholestoral", typeof(int))]
		public decimal? HealthCholestoral { get; set; }

		[Field("health_HDL", typeof(int))]
		public decimal? HealthHdl { get; set; }

		[Field("health_LDL", typeof(int))]
		public decimal? HealthLdl { get; set; }

		[Field("health_T6", typeof(int))]
		public decimal? HealthT6 { get; set; }

		[Field("health_HCT", typeof(int))]
		public decimal? HealthHct { get; set; }

		[Field("health_PIT", typeof(int))]
		public decimal? HealthPit { get; set; }

		[Field("health_CXK", typeof(int))]
		public bool HealthCxk { get; set; }

        [Field("health_CK6", typeof(int))]
        public bool HealthCk6 { get; set; }
        [Field("health_HealthBunCr", typeof(int))]
        public decimal? HealthBunCr { get; set; }

		[Field("remark", typeof(int))]
		public string Remark { get; set; }

		[Field("created_by", typeof(int), false, false, true)]
		public int? CreatedBy { get; set; }

		[Field("created_when", typeof(int), false, false, false, true)]
		public DateTime? CreatedWhen { get; set; }

		[Field("updated_by", typeof(int), false, false, false, false, true)]
		public int? UpdatedBy { get; set; }

		[Field("updated_when", typeof(int), false, false, false, false, false, true)]
		public DateTime? UpdatedWhen { get; set; }

		[Field("record_status", typeof(int), false, true)]
		public string RecordStatus { get; set; }
	}


}
